package cn.itlaobing.service;

import cn.itlaobing.dao.TrainDao;
import cn.itlaobing.entity.QueryInfo;

import java.sql.SQLException;

/**
 * Created by Berlin-IOU on 2017/11/9.
 */
public class QueryInfoService {
    private TrainDao trainDao=new TrainDao();
    public QueryInfo findPrice(String trainnum,String goaddress,String toadress){
        QueryInfo queryInfo=null;
        try {
           queryInfo=trainDao.findPrice(trainnum,goaddress,toadress);
        } catch (SQLException e) {
            e.printStackTrace();
        }
        return queryInfo;
    }
}
